var indexModule = angular.module('indexModule');

indexModule.directive('unslider', function() {
	return {
	    restrict: 'A',
	    scope: {},
	    replace: true,
	    link: function(scope, elem, attrs) {
	    	elem.unslider({
				speed: 1000,               //  The speed to animate each slide (in milliseconds)
				delay: 300000,              //  The delay between slide animations (in milliseconds)
				complete: function() {},  //  A function that gets called after every slide animation
				keys: false,               //  Enable keyboard (left, right) arrow shortcuts
				dots: true,               //  Display dot navigation
				fluid: false
			});
		}

	};
});
